package com.example.hotel;



import android.app.Activity;

import android.net.Uri;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;


public class CopyOfMedia extends Activity {


	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.media);
		
		String ch9 = "rtsp://203.151.21.9:1935/live/Saranair";
		vdoplay(ch9);

	}

	 public void vdoplay(String path) {
			//setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
			VideoView mVideoView = (VideoView) findViewById(R.id.videoView1);
			mVideoView.setVideoURI(Uri.parse(path));
			mVideoView.setMediaController(new MediaController(this));
			mVideoView.requestFocus();
			mVideoView.start();
		}

}
